﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SpiceNet.Simulations;
using SpiceNet.Integration;

namespace SpiceNet.Circuits
{
    /// <summary>
    /// A class representing a task
    /// </summary>
    public class SpiceTask
    {
        /// <summary>
        /// Gets the configuration parameters
        /// </summary>
        public CircuitConfiguration Config { get; private set; }

        /// <summary>
        /// Gets the configuration parameters for integration
        /// </summary>
        public IntegrationConfiguration IntegrationConfig { get; private set; }

        /// <summary>
        /// List of jobs
        /// </summary>
        public List<Analysis> Analyses { get; private set; }

        /// <summary>
        /// The task name
        /// </summary>
        public string Name { get; private set; }

        /// <summary>
        /// The current analysis
        /// </summary>
        public AnalysisType CurrentAnalysis;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="name"></param>
        public SpiceTask(string name)
        {
            this.Name = name;

            // Allocate
            Analyses = new List<Analysis>();
            Config = new CircuitConfiguration();
            IntegrationConfig = new IntegrationConfiguration();
        }
    }
}
